import { defineConfig } from 'vite'
import lib from './vite.config.lib'
import doc from './vite.config.doc'
import preview from './vite.config.preview'

export default defineConfig(({ command, mode }) => {
    if (command == 'build' && mode == 'lib') {
        return lib
    }
    if (command == 'serve' && mode == 'preview') {
        return preview
    }
    return doc
})
